{include file="./headStart.tpl"}
<script type="text/javascript">
$(document).ready(function(){
  
});
function reportChange()
{
  
  var dataString = "companyId=" + $('#companyId').val() + "&toDateYear=" + $("select[name='toDateYear']").val() 
                    + "&toDateMonth=" + $("select[name='toDateMonth']").val() + "&toDateDay=" + $("select[name='toDateDay']").val() 
                    + "&fromDateYear=" + $("select[name='fromDateYear']").val() + "&fromDateMonth=" + $("select[name='fromDateMonth']").val() 
                    + "&fromDateDay=" + $("select[name='fromDateDay']").val() + "&Challan=" + $('#Challan').val();
    $.ajax({
      url:  "./deliveryChalanAj1.php",
      cache: false,
      data: dataString,
      success: function(data){
      $("#userType").html(data);
    }
  });
}
function changeParty(objChallan)
{
  
	var dataString = "Challan=" + $('#Challan').val();
	 $.ajax({
      url:  "./partyCustAj.php",
      cache: false,
      data: dataString,
      success: function(data){
      	$("#abc").html(data);
      }
    });
}
</script>
{include file="./headEnd.tpl"}
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="6"><font style="font-size: 16px"><b> Goods Movement Records List </b></font></td>
</tr>
<tr>
	<td class="table2">Challan Type :                            
    <select name="Challan" id="Challan" onchange="changeParty(this)">           
      <option value="All">All</option>    
      {html_options values="$challanTypeId" output="$challanType"} 
    </select> 
  </td>
  <td>
  <span id="abc"></span>
</td>
  <td align="right" class="table2" >Report Date : </td>
  <td NOWRAP class="table2">
     {html_select_date prefix="fromDate" time="$reportFromDate" start_year="-3" end_year="+1" month_format="%m" field_order="DMY"  day_value_format="%02d"}
  </td>
  <td NOWRAP class="table2">To :
          {html_select_date prefix="toDate" start_year="-3" end_year="+1" month_format="%m" field_order="DMY"  day_value_format="%02d"}
  </td>
  <td class="table2">
    <input type="submit" name="submitDateBtn" value="GO..." class="button" onclick="reportChange();"/>
  </td>
</tr>  
</table>
<br />
<div id="userType"> 
</div>
{include file="footer.tpl"}